﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fcdbas.Platform.Interface
{
    public interface IAuthFunc<Func,FuncRight,F>
    {
        List<Func> AuthFuncList{get;set;}
        string AppName{get;set;}
        string RoleId{get;set;}
        string UserId{get;set;}
        string FormName { get; set; }
        string CompCode { get; set; }
        /// <summary>
        /// 取得功能列表，同时设置权限
        /// </summary>
        /// <param name="Ctrl">控件</param>
        /// <param name="AppName">程序名</param>
        /// <param name="roleId">角色的ID</param>
        /// <param name="userId">用户ID</param>
        /// <returns>功能列表</returns>
        void GetAndSetAuthFuncs(F Ctrl);
        bool Save(List<Func> funcs);
        //bool GetRoleRight(string role, string compCode, string formName, string funcName);
        //bool GetUserRight(string user, string compCode, string formName, string funcName);
    }
}
